<html><head>

        <link href="<?php echo base_url('assets/css/formkematian.css') ?>" rel="stylesheet" type="text/css">
        <title>Laporan Kematian Penduduk</title>
    </head>
    <body>
        <!--        table 1-->
        <table width="100%" border="0" align="center">
            <tr>
                <td colspan="10" class="trheader">Laporan  Kematian Penduduk <br>
                    Kategori : Per Nomor Induk Kependudukan</td>
            </tr>
            <tr>
                <td colspan="10" class="cari">&nbsp;</td>
            </tr>
            <form action="<?php echo base_url('kematian/cetak_suratketerangan'); ?>" method="post">
                <tr>
                    <td colspan="10" class="cari">Cari NIK yang meninggal
                        <input type="text" name="nik" id="nik" class="textinput" placeholder="NIK" />
                        <input type="submit" name="cari" id="cari" value="Cari" class="btn btn-large"/></td>
                </tr>
            </form>
            <tr>
                <td colspan="8" bordercolor="#666666" class="tampilcari"><div align="center">Daftar kematian dengan NIK : <?php echo isset($nik->nik) ? $nik->nik : ''; ?></div></td>
            </tr> 
            <tr>
                <td colspan="10" class="jeda">&nbsp;</td>
            </tr>
        </table>

        <!--        table 2-->
        <?php
        if (isset($kematian)) {
            foreach ($kematian->result() as $data_kematian) {
                echo '<table width="80%" border="0" align="center">';
                echo '<tr>';
                echo '<td width="21%">Nomor Kepala Keluarga</td>';
                echo '<td width="2%">:</td>';
                echo '<td width="77%">&nbsp;</td>';
                echo '</tr>';

                echo '<tr>';
                echo '<td>Nama Kepala Keluarga</td>';
                echo '<td>:</td>';
                echo '<td>&nbsp;</td>';
                echo '</tr>';
                echo '</table>'; //akhir table 2

                echo '<table width="80%" border="0" align="center">'; //table 3

                echo '<tr class="jeda">';
                echo '<td colspan="3"><strong>DATA PENDUDUK MENINGGAL</strong></td>';
                echo '</tr>';

                echo '<tr>';
                echo '<td width="22%">Nama Lengkap</td>';
                echo '<td width="1%">:</td>';
                echo '<td width="77%">&nbsp;</td>';
                echo '</tr>';

                echo '<tr>';
                echo '<td>Jenis Kelamin</td>';
                echo '<td>:</td>';
                echo '<td>&nbsp;</td>';
                echo '</tr>';

                echo '<tr>';
                echo '<td>Alamat</td>';
                echo '<td>:</td>';
                echo '<td>&nbsp;</td>';
                echo '</tr>';

                echo '<tr>';
                echo '<td>Umur</td>';
                echo '<td>:</td>';
                echo '<td>&nbsp;</td>';
                echo '</tr>';

                echo '<tr>';
                echo '<td>Hari dan Tanggal meninggal</td>';
                echo '<td>:</td>';
                echo '<td>&nbsp;</td>';
                echo '</tr>';

                echo '<tr>';
                echo '<td>Tempat Kematian</td>';
                echo '<td>:</td>';
                echo '<td>&nbsp;</td>';
                echo '</tr>';

                echo '<tr>';
                echo '<td>Sebab</td>';
                echo '<td>:</td>';
                echo '<td>&nbsp;</td>';
                echo '</tr>';

                echo '<tr>';
                echo '<td>Nomor KK</td>';
                echo '<td>:</td>';
                echo '<td>&nbsp;</td>';
                echo '</tr>';

                echo '<tr>';
                echo '<td>No. KTP</td>';
                echo '<td>:</td>';
                echo '<td>&nbsp;</td>';
                echo '</tr>';

                echo '</table>'; //akhir table 3
            }
        }
        ?>

        <br>
        <table width="100%">
            <tr>
                <td class="cetak">
                    <div align="center">
                        <a href="<?php echo base_url('cetak_laporan_kematian/cetak_kematian'); ?>">Cetak Formulir</a>
                    </div>
                </td>
            </tr>
        </table>
    </body>
</html>
